Optimal. Leaf size=121 \[ \frac{i \sqrt{c+d \tan (e+f x)}}{f \sqrt{a+i a \tan (e+f x)}}-\frac{i \sqrt{c-i d} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{\sqrt{2} \sqrt{a} f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21492, antiderivative size = 121, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.094, Rules used = {3546, 3544, 208} \[ \frac{i \sqrt{c+d \tan (e+f x)}}{f \sqrt{a+i a \tan (e+f x)}}-\frac{i \sqrt{c-i d} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{\sqrt{2} \sqrt{a} f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3546
Rule 3544
Rule 208
Rubi steps
\begin{align*} \int \frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{a+i a \tan (e+f x)}} \, dx &=\frac{i \sqrt{c+d \tan (e+f x)}}{f \sqrt{a+i a \tan (e+f x)}}+\frac{(c-i d) \int \frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{c+d \tan (e+f x)}} \, dx}{2 a}\\ &=\frac{i \sqrt{c+d \tan (e+f x)}}{f \sqrt{a+i a \tan (e+f x)}}-\frac{(a (i c+d)) \operatorname{Subst}\left (\int \frac{1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{a+i a \tan (e+f x)}}\right )}{f}\\ &=-\frac{i \sqrt{c-i d} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{\sqrt{2} \sqrt{a} f}+\frac{i \sqrt{c+d \tan (e+f x)}}{f \sqrt{a+i a \tan (e+f x)}}\\ \end{align*}
Mathematica [A] time = 3.17367, size = 182, normalized size = 1.5 \[ \frac{i \left (\sqrt{1+e^{2 i (e+f x)}} \sqrt{c+d \tan (e+f x)}-\sqrt{c-i d} e^{i (e+f x)} \log \left (2 \left (\sqrt{c-i d} e^{i (e+f x)}+\sqrt{1+e^{2 i (e+f x)}} \sqrt{c-\frac{i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )\right )\right )}{f \sqrt{1+e^{2 i (e+f x)}} \sqrt{a+i a \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.105, size = 877, normalized size = 7.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.79314, size = 1084, normalized size = 8.96 \begin{align*} \frac{{\left (\sqrt{2} a f \sqrt{-\frac{c - i \, d}{a f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} \log \left ({\left (i \, \sqrt{2} a f \sqrt{-\frac{c - i \, d}{a f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} + \sqrt{2} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-i \, f x - i \, e\right )}\right ) - \sqrt{2} a f \sqrt{-\frac{c - i \, d}{a f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} \log \left ({\left (-i \, \sqrt{2} a f \sqrt{-\frac{c - i \, d}{a f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} + \sqrt{2} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-i \, f x - i \, e\right )}\right ) + \sqrt{2} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (2 i \, e^{\left (2 i \, f x + 2 i \, e\right )} + 2 i\right )} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{c + d \tan{\left (e + f x \right )}}}{\sqrt{a \left (i \tan{\left (e + f x \right )} + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]